class Config:
    """多套环境的公共配置"""
    version = "v1.0"
    # 钉钉群机器人通知
    DING_TALK = {
        # 456外部群
        # "title": "456",
        # "secret": "SECd9bb4b8afbe8ca6c4d7ce0c9395087d4f332b88ec46f431c53a3c3b46f8cbac4",
        # "access_token": "0126b43794f2c73dbb0fa643a4301e60f75c6197fa393b02a85022bcb832bec8"

        # 123普通群
        "title": "123",
        "secret": "SEC9eaeb3cf62d76431257005e9137382bb459399efdc87d66de18a5e6f3668a8bf",
        "access_token": "ec357ede4c9384a6d67f8339f3c56287fdb05327c2c9599e8064bb274a3e00e7",
    }


#############################################
#------------------运营中心------------------#
#############################################

# 本地环境
class PlatLocalConfig(Config):
    """本地环境"""
    BASE_URL = 'http://127.0.0.1:9002'
    env = "local"
    phone = "15977264888"
    code = "888888"


# 开发环境
class PlatDevConfig(Config):
    """开发环境"""
    BASE_URL = 'http://192.168.110.24:9002'
    env = "dev"
    phone = "15977264888"
    code = "888888"


# 测试环境
class PlatTestConfig(Config):
    """测试环境"""
    BASE_URL = 'https://console-beauty.duobaoyu88.cn/beauty-platform'
    env = "test"


# 联调环境
class PlatUatConfig(Config):
    """联调环境"""
    BASE_URL = 'http://www.baidu.com'
    env = "uat"


#############################################
#------------------商户中心------------------#
#############################################

# 本地环境
class MchLocalConfig(Config):
    """本地环境"""
    BASE_URL = 'http://127.0.0.1:9000'
    env = "local"
    phone = "13294119010"
    code = "888888"


# 开发环境
class MchDevConfig(Config):
    """开发环境"""
    BASE_URL = 'http://192.168.110.24:9000'
    env = "dev"
    phone = "15872084873"
    code = "888888"


# 测试环境
class MchTestConfig(Config):
    """测试环境"""
    BASE_URL = 'https://console-beauty.duobaoyu88.cn/beauty-admin'
    env = "test"
    phone = "15071163532"
    code = "888888"


# 联调环境
class MchUatConfig(Config):
    """联调环境"""
    BASE_URL = 'http://www.baidu.com'
    env = "uat"


# 环境关系映射
env = {
    "plat-test": PlatTestConfig,
    "plat-uat": PlatUatConfig,
    "plat-dev": PlatDevConfig,
    "plat-local": PlatLocalConfig,

    "mch-test": MchTestConfig,
    "mch-uat": MchUatConfig,
    "mch-dev": MchDevConfig,
    "mch-local": MchLocalConfig,

}
